package com.itlong.cloud.iottp;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <desc>
 *      阿里云iot业务操作暴露接口。
 * <desc/>
 *
 * @createDate 2018/07/12.
 */
@FeignClient(name = "iot-tp-service")
public interface IIotServerServiceClient {

    /**
     * <desc>
     *     批量获取同一个产品型号下的设备工作状态
     * </desc>
     *
     * @param productKey
     * @param deviceUniques 设备序列号 多个,号分隔
     * @return
     * @author Jiaqi.X
     * @createDate  2018/03/17
     */
    @RequestMapping(path = "/iotTp/iot/batchGetDeviceState",method = RequestMethod.POST)
    String batchGetDeviceState(@RequestParam("productKey") String productKey,@RequestParam("deviceUnique") String deviceUniques);
}
